Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: setup unit test for playground package #174

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

ldhyen99
Copy link
Collaborator

@ldhyen99 ldhyen99 commented Dec 3, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

Setup up Jest following - https://nextjs.org/docs/app/building-your-application/testing/jest

Related Tickets & Documents

https://github.com/gs-gs/fa-ag-trace/issues/785

Mobile & Desktop Screenshots/Recordings

image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“– Mock App docs site
  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Copy link

github-actions bot commented Dec 3, 2024

Code Coverage Report

Lines Statements Branches Functions
Coverage: 73%
73.15% (2886/3945) 55.23% (575/1041) 64.2% (321/500)
Title Lines Statements Branches Functions
All packages Coverage: 73%
73.15% (2886/3945) 55.23% (575/1041) 64.2% (321/500)
Components Coverage: 84%
84.03% (516/614) 69.36% (120/173) 77.23% (95/123)
Mock app Coverage: 71%
71.89% (371/516) 53.23% (74/139) 68.14% (77/113)
Services Coverage: 80%
78.46% (984/1254) 63.17% (235/372) 75.91% (104/137)
UNTP test suite Coverage: 57%
57.86% (1001/1730) 82.63% (138/167) 71.92% (41/57)
VC test suite Coverage: 7%
7.4% (12/162) 7.4% (2/27)
UNTP Playground Coverage: 6%
6.63% (27/407) 4.1% (8/195) 5.33% (4/75)

Copy link
Contributor

@huynguyen-hl huynguyen-hl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add this line to the jest.config.js file to ensure Jest collects coverage for all .ts and .tsx files?

collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts', '!src/**/index', '!src/**/types']

@ldhyen99 ldhyen99 merged commit 7cf4464 into next Dec 5, 2024
2 checks passed
@ldhyen99 ldhyen99 deleted the test/setup_unit_test_playground_package branch December 5, 2024 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants